<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%user}}".
 *
 * @property integer $u_id
 * @property string $u_phone
 * @property string $u_pass
 */
class User extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%user}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['u_phone'], 'string', 'max' => 11],
            [['u_pass'], 'string', 'max' => 50]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'u_id' => '用户id',
            'u_phone' => '用户电话',
            'u_pass' => '用户密码',
        ];
    }
   
}
